package com.qunar.train.mock.network;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: xudong.tai
 * @since: 2018/8/14 Description:
 **/
public class MockHttpServletRequest implements javax.servlet.http.HttpServletRequest {

    private java.lang.String getPathTranslatedReturnValue = null;
    private java.lang.String getContentTypeReturnValue = null;
    private Map<String, javax.servlet.RequestDispatcher> getRequestDispatcherReturnValue = new HashMap<>();
    private javax.servlet.http.HttpSession getSessionReturnValuePVoid = null;
    private Map<String, Boolean> isUserInRoleReturnValue = new HashMap<>();
    private Map<String, String> getParameterReturnValue = new HashMap<>();
    private java.util.Locale getLocaleReturnValue = null;
    private javax.servlet.ServletInputStream getInputStreamReturnValue = null;
    private Map<String, String> getHeaderReturnValue = new HashMap<>();
    private java.util.Enumeration getHeaderNamesReturnValue = null;
    private java.util.Map getParameterMapReturnValue = new HashMap();
    private java.lang.String getRequestedSessionIdReturnValue = null;
    private java.lang.String getRemoteAddrReturnValue = null;
    private boolean isRequestedSessionIdFromCookieReturnValue = false;
    private java.lang.String getProtocolReturnValue = null;
    private Map<String, Object> getAttributeReturnValue = new HashMap<>();
    private javax.servlet.http.Cookie[] getCookiesReturnValue = null;
    private java.io.BufferedReader getReaderReturnValue = null;
    private java.lang.String getLocalAddrReturnValue = null;
    private Map<String, Integer> getIntHeaderReturnValue = new HashMap<>();
    private java.lang.String getSchemeReturnValue = null;
    private java.lang.String getContextPathReturnValue = null;
    private java.lang.String getRequestURIReturnValue = null;
    private boolean isRequestedSessionIdFromUrlReturnValue = false;
    private java.lang.String getQueryStringReturnValue = null;
    private boolean isRequestedSessionIdValidReturnValue = false;
    private int getServerPortReturnValue = 0;
    private java.lang.String getMethodReturnValue = null;
    private java.lang.String getServletPathReturnValue = null;
    private boolean isSecureReturnValue = false;
    private java.lang.String getServerNameReturnValue = null;
    private boolean isRequestedSessionIdFromURLReturnValue = false;
    private int getRemotePortReturnValue = 0;
    private java.lang.String getCharacterEncodingReturnValue = null;
    private java.util.Enumeration getParameterNamesReturnValue = null;
    private Map<String, String> getRealPathReturnValue = new HashMap<>();
    private javax.servlet.http.HttpSession getSessionReturnValuePBoolean = null;
    private java.lang.String getRemoteHostReturnValue = null;
    private java.util.Enumeration getLocalesReturnValue = null;
    private long getDateHeaderReturnValue = 0L;
    private java.lang.String getLocalNameReturnValue = null;
    private int getLocalPortReturnValue = 0;
    private Map<String, java.util.Enumeration> getHeadersReturnValue = new HashMap<>();
    private Map<String, java.lang.String[]> getParameterValuesReturnValue = new HashMap<>();
    private java.util.Enumeration getAttributeNamesReturnValue = null;
    private java.lang.String getRemoteUserReturnValue = null;
    private java.lang.String getPathInfoReturnValue = null;
    private java.security.Principal getUserPrincipalReturnValue = null;
    private java.lang.String getAuthTypeReturnValue = null;
    private int getContentLengthReturnValue = 0;
    private java.lang.StringBuffer getRequestURLReturnValue = null;


    public java.lang.String getPathTranslated() {
        return this.getPathTranslatedReturnValue;
    }

    public java.lang.String getContentType() {
        return this.getContentTypeReturnValue;
    }

    public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String arg0) {
        return this.getRequestDispatcherReturnValue.get(arg0);
    }

    public javax.servlet.http.HttpSession getSession() {
        return this.getSessionReturnValuePVoid;
    }

    public boolean isUserInRole(java.lang.String arg0) {
        return this.isUserInRoleReturnValue.get(arg0);
    }

    public java.lang.String getParameter(java.lang.String arg0) {
        return this.getParameterReturnValue.get(arg0);
    }

    public java.util.Locale getLocale() {
        return this.getLocaleReturnValue;
    }

    public javax.servlet.ServletInputStream getInputStream() {
        return this.getInputStreamReturnValue;
    }

    public java.lang.String getHeader(java.lang.String arg0) {
        return this.getHeaderReturnValue.get(arg0);
    }

    public java.util.Enumeration getHeaderNames() {
        return this.getHeaderNamesReturnValue;
    }

    public java.util.Map getParameterMap() {
        return this.getParameterMapReturnValue;
    }

    public java.lang.String getRequestedSessionId() {
        return this.getRequestedSessionIdReturnValue;
    }

    public java.lang.String getRemoteAddr() {
        return this.getRemoteAddrReturnValue;
    }

    public boolean isRequestedSessionIdFromCookie() {
        return this.isRequestedSessionIdFromCookieReturnValue;
    }

    public java.lang.String getProtocol() {
        return this.getProtocolReturnValue;
    }

    public java.lang.Object getAttribute(java.lang.String arg0) {
        return this.getAttributeReturnValue.get(arg0);
    }

    public javax.servlet.http.Cookie[] getCookies() {
        return this.getCookiesReturnValue;
    }

    public java.io.BufferedReader getReader() {
        return this.getReaderReturnValue;
    }

    public java.lang.String getLocalAddr() {
        return this.getLocalAddrReturnValue;
    }

    public int getIntHeader(java.lang.String arg0) {
        return this.getIntHeaderReturnValue.get(arg0);
    }

    public void setAttribute(java.lang.String arg0, java.lang.Object arg1) {
        getAttributeReturnValue.put(arg0, arg1);
    }

    public java.lang.String getScheme() {
        return this.getSchemeReturnValue;
    }

    public void removeAttribute(java.lang.String arg0) {
        getAttributeReturnValue.remove(arg0);
    }

    public java.lang.String getContextPath() {
        return this.getContextPathReturnValue;
    }

    public java.lang.String getRequestURI() {
        return this.getRequestURIReturnValue;
    }

    public boolean isRequestedSessionIdFromUrl() {
        return this.isRequestedSessionIdFromUrlReturnValue;
    }

    public java.lang.String getQueryString() {
        return this.getQueryStringReturnValue;
    }

    public boolean isRequestedSessionIdValid() {
        return this.isRequestedSessionIdValidReturnValue;
    }

    public int getServerPort() {
        return this.getServerPortReturnValue;
    }

    public java.lang.String getMethod() {
        return this.getMethodReturnValue;
    }

    public java.lang.String getServletPath() {
        return this.getServletPathReturnValue;
    }

    public boolean isSecure() {
        return this.isSecureReturnValue;
    }

    public java.lang.String getServerName() {
        return this.getServerNameReturnValue;
    }

    public boolean isRequestedSessionIdFromURL() {
        return this.isRequestedSessionIdFromURLReturnValue;
    }

    public void setCharacterEncoding(java.lang.String arg0) {
        this.getCharacterEncodingReturnValue = arg0;
    }

    public int getRemotePort() {
        return this.getRemotePortReturnValue;
    }

    public java.lang.String getCharacterEncoding() {
        return this.getCharacterEncodingReturnValue;
    }

    public java.util.Enumeration getParameterNames() {
        return this.getParameterNamesReturnValue;
    }

    public java.lang.String getRealPath(java.lang.String arg0) {
        return this.getRealPathReturnValue.get(arg0);
    }

    public javax.servlet.http.HttpSession getSession(boolean arg0) {
        return this.getSessionReturnValuePBoolean;
    }

    public java.lang.String getRemoteHost() {
        return this.getRemoteHostReturnValue;
    }

    public java.util.Enumeration getLocales() {
        return this.getLocalesReturnValue;
    }

    public long getDateHeader(java.lang.String arg0) {
        return this.getDateHeaderReturnValue;
    }

    public java.lang.String getLocalName() {
        return this.getLocalNameReturnValue;
    }

    public int getLocalPort() {
        return this.getLocalPortReturnValue;
    }

    public java.util.Enumeration getHeaders(java.lang.String arg0) {
        return this.getHeadersReturnValue.get(arg0);
    }

    public java.lang.String[] getParameterValues(java.lang.String arg0) {
        return this.getParameterValuesReturnValue.get(arg0);
    }

    public java.util.Enumeration getAttributeNames() {
        return this.getAttributeNamesReturnValue;
    }

    public java.lang.String getRemoteUser() {
        return this.getRemoteUserReturnValue;
    }

    public java.lang.String getPathInfo() {
        return this.getPathInfoReturnValue;
    }

    public java.security.Principal getUserPrincipal() {
        return this.getUserPrincipalReturnValue;
    }

    public java.lang.String getAuthType() {
        return this.getAuthTypeReturnValue;
    }

    public int getContentLength() {
        return this.getContentLengthReturnValue;
    }

    public java.lang.StringBuffer getRequestURL() {
        return this.getRequestURLReturnValue;
    }


    public void setPathTranslated(java.lang.String p) {
        this.getPathTranslatedReturnValue = p;
    }

    public void setContentType(java.lang.String p) {
        this.getContentTypeReturnValue = p;
    }

    public void setRequestDispatcher(String key, javax.servlet.RequestDispatcher value) {
        this.getRequestDispatcherReturnValue.put(key, value);
    }

    public void setSession(javax.servlet.http.HttpSession p) {
        this.getSessionReturnValuePVoid = p;
    }

    public void setIsUserInRole(String key, boolean value) {
        this.isUserInRoleReturnValue.put(key, value);
    }

    public void setParameter(String key, String value) {
        this.getParameterReturnValue.put(key, value);
    }

    public void setLocale(java.util.Locale p) {
        this.getLocaleReturnValue = p;
    }

    public void setInputStream(javax.servlet.ServletInputStream p) {
        this.getInputStreamReturnValue = p;
    }

    public void setHeader(String key, String value) {
        this.getHeaderReturnValue.put(key, value);
    }

    public void setHeaderNames(java.util.Enumeration p) {
        this.getHeaderNamesReturnValue = p;
    }

    public void setParameterMap(java.util.Map p) {
        this.getParameterMapReturnValue = p;
    }

    public void setRequestedSessionId(java.lang.String p) {
        this.getRequestedSessionIdReturnValue = p;
    }

    public void setRemoteAddr(java.lang.String p) {
        this.getRemoteAddrReturnValue = p;
    }

    public void setIsRequestedSessionIdFromCookie(boolean p) {
        this.isRequestedSessionIdFromCookieReturnValue = p;
    }

    public void setProtocol(java.lang.String p) {
        this.getProtocolReturnValue = p;
    }


    public void setCookies(javax.servlet.http.Cookie[] p) {
        this.getCookiesReturnValue = p;
    }

    public void setReader(java.io.BufferedReader p) {
        this.getReaderReturnValue = p;
    }

    public void setLocalAddr(java.lang.String p) {
        this.getLocalAddrReturnValue = p;
    }

    public void setIntHeader(String key, int value) {
        this.getIntHeaderReturnValue.put(key, value);
    }

    public void setScheme(java.lang.String p) {
        this.getSchemeReturnValue = p;
    }

    public void setContextPath(java.lang.String p) {
        this.getContextPathReturnValue = p;
    }

    public void setRequestURI(java.lang.String p) {
        this.getRequestURIReturnValue = p;
    }

    public void setIsRequestedSessionIdFromUrl(boolean p) {
        this.isRequestedSessionIdFromUrlReturnValue = p;
    }

    public void setQueryString(java.lang.String p) {
        this.getQueryStringReturnValue = p;
    }

    public void setIsRequestedSessionIdValid(boolean p) {
        this.isRequestedSessionIdValidReturnValue = p;
    }

    public void setServerPort(int p) {
        this.getServerPortReturnValue = p;
    }

    public void setMethod(java.lang.String p) {
        this.getMethodReturnValue = p;
    }

    public void setServletPath(java.lang.String p) {
        this.getServletPathReturnValue = p;
    }

    public void setIsSecure(boolean p) {
        this.isSecureReturnValue = p;
    }

    public void setServerName(java.lang.String p) {
        this.getServerNameReturnValue = p;
    }

    public void setIsRequestedSessionIdFromURL(boolean p) {
        this.isRequestedSessionIdFromURLReturnValue = p;
    }

    public void setRemotePort(int p) {
        this.getRemotePortReturnValue = p;
    }


    public void setParameterNames(java.util.Enumeration p) {
        this.getParameterNamesReturnValue = p;
    }

    public void setRealPath(String key, java.lang.String value) {
        this.getRealPathReturnValue.put(key, value);
    }

    public void setSessionReturnValuePBoolean(javax.servlet.http.HttpSession p) {
        this.getSessionReturnValuePBoolean = p;
    }

    public void setRemoteHost(java.lang.String p) {
        this.getRemoteHostReturnValue = p;
    }

    public void setLocales(java.util.Enumeration p) {
        this.getLocalesReturnValue = p;
    }

    public void setDateHeader(long p) {
        this.getDateHeaderReturnValue = p;
    }

    public void setLocalName(java.lang.String p) {
        this.getLocalNameReturnValue = p;
    }

    public void setLocalPort(int p) {
        this.getLocalPortReturnValue = p;
    }

    public void setHeaders(String key, java.util.Enumeration value) {
        this.getHeadersReturnValue.put(key, value);
    }

    public void setParameterValues(String key, java.lang.String[] value) {
        this.getParameterValuesReturnValue.put(key, value);
    }

    public void setAttributeNames(java.util.Enumeration p) {
        this.getAttributeNamesReturnValue = p;
    }

    public void setRemoteUser(java.lang.String p) {
        this.getRemoteUserReturnValue = p;
    }

    public void setPathInfo(java.lang.String p) {
        this.getPathInfoReturnValue = p;
    }

    public void setUserPrincipal(java.security.Principal p) {
        this.getUserPrincipalReturnValue = p;
    }

    public void setAuthType(java.lang.String p) {
        this.getAuthTypeReturnValue = p;
    }

    public void setContentLength(int p) {
        this.getContentLengthReturnValue = p;
    }

    public void setRequestURL(java.lang.StringBuffer p) {
        this.getRequestURLReturnValue = p;
    }


    public void clear() {
        this.getPathTranslatedReturnValue = null;
        this.getContentTypeReturnValue = null;
        this.getRequestDispatcherReturnValue = null;
        this.getSessionReturnValuePVoid = null;
        this.isUserInRoleReturnValue = null;
        this.getParameterReturnValue = null;
        this.getLocaleReturnValue = null;
        this.getInputStreamReturnValue = null;
        this.getHeaderReturnValue = null;
        this.getHeaderNamesReturnValue = null;
        this.getParameterMapReturnValue = null;
        this.getRequestedSessionIdReturnValue = null;
        this.getRemoteAddrReturnValue = null;
        this.isRequestedSessionIdFromCookieReturnValue = false;
        this.getProtocolReturnValue = null;
        this.getAttributeReturnValue = null;
        this.getCookiesReturnValue = null;
        this.getReaderReturnValue = null;
        this.getLocalAddrReturnValue = null;
        this.getIntHeaderReturnValue = null;
        this.getSchemeReturnValue = null;
        this.getContextPathReturnValue = null;
        this.getRequestURIReturnValue = null;
        this.isRequestedSessionIdFromUrlReturnValue = false;
        this.getQueryStringReturnValue = null;
        this.isRequestedSessionIdValidReturnValue = false;
        this.getServerPortReturnValue = 0;
        this.getMethodReturnValue = null;
        this.getServletPathReturnValue = null;
        this.isSecureReturnValue = false;
        this.getServerNameReturnValue = null;
        this.isRequestedSessionIdFromURLReturnValue = false;
        this.getRemotePortReturnValue = 0;
        this.getCharacterEncodingReturnValue = null;
        this.getParameterNamesReturnValue = null;
        this.getRealPathReturnValue = null;
        this.getSessionReturnValuePBoolean = null;
        this.getRemoteHostReturnValue = null;
        this.getLocalesReturnValue = null;
        this.getDateHeaderReturnValue = 0L;
        this.getLocalNameReturnValue = null;
        this.getLocalPortReturnValue = 0;
        this.getHeadersReturnValue = null;
        this.getParameterValuesReturnValue = null;
        this.getAttributeNamesReturnValue = null;
        this.getRemoteUserReturnValue = null;
        this.getPathInfoReturnValue = null;
        this.getUserPrincipalReturnValue = null;
        this.getAuthTypeReturnValue = null;
        this.getContentLengthReturnValue = 0;
        this.getRequestURLReturnValue = null;
    }


}
